package com.swak.boot.config.jdbc.mapper;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.swak.async.persistence.mapper.AsyncMapperFactoryBean;
import com.swak.boot.config.jdbc.mapper.async.AsyncMapperScannerConfigurer;
import com.swak.boot.config.jdbc.mapper.async.AsyncMapperScannerRegistrar;

@Configuration
@Import(AsyncMapperScannerRegistrar.class)
@ConditionalOnMissingBean({ AsyncMapperFactoryBean.class, AsyncMapperScannerConfigurer.class })
@ConditionalOnClass({ AsyncMapperFactoryBean.class, AsyncMapperScannerConfigurer.class })
public class AsyncMapperAutoConfiguration {

}
